(function (window) {
    window.console || (console = {
        log: function () {
        }, dir: function () {
        }, error: function () {
        }
    });

    var ver = {
        /*<ver>*/
        "360_coop_detail": "07_js/201609/01/16/09",
        "360_coop_index": "04_js/201609/01/16/09",
        ad: "05_js/201609/01/16/09",
        appBanner: "06_js/201609/01/16/09",
        asiancup: "04_js/201609/01/16/09",
        ballgame: "03_js/201609/01/16/09",
        base: "05_js/201612/30/15/40",
        beauty: "07_js/201609/08/16/43",
        best: "04_js/201609/01/16/09",
        bigrich: "07_js/201609/01/16/09",
        car: "03_js/201609/01/16/09",
        chenjian: "02_js/201609/01/16/09",
        chuda: "05_js/201609/01/16/09",
        comic: "03_js/201609/01/16/09",
        commonweal: "05_js/201609/01/16/09",
        coop_baike: "06_js/201609/01/16/09",
        coop_sports_baidu: "07_js/201609/01/16/09",
        coop_sports_sougou: "05_js/201609/01/16/09",
        coopration_daka_player: "05_js/201609/01/16/09",
        coopration_disney_player: "06_js/201609/01/16/09",
        documentary: "05_js/201609/01/16/09",
        edu: "06_js/201609/01/16/09",
        edu_abroad: "04_js/201609/01/16/09",
        edu_child: "07_js/201609/01/16/09",
        edu_juvenile: "04_js/201609/01/16/09",
        edu_open: "05_js/201609/01/16/09",
        ent: "04_js/201609/01/16/09",
        experssdown: "04_js/201609/01/16/09",
        fashion: "05_js/201609/01/16/09",
        fiba: "05_js/201609/01/16/09",
        finance: "06_js/201609/01/16/09",
        finance_business: "04_js/201609/01/16/09",
        finance_financing: "07_js/201609/01/16/09",
        finance_fund: "04_js/201609/01/16/09",
        finance_futures: "05_js/201609/01/16/09",
        finance_gold: "07_js/201609/01/16/09",
        finance_invest: "06_js/201609/01/16/09",
        finance_life: "06_js/201609/01/16/09",
        finance_shares: "06_js/201609/01/16/09",
        finance_show: "02_js/201609/01/16/09",
        finance_startup: "05_js/201609/01/16/09",
        fun: "03_js/201609/08/16/43",
        game: "06_js/201609/08/16/43",
        golf: "05_js/201609/01/16/09",
        gsd: "05_js/201609/01/16/09",
        h5player: "07_js/201609/01/16/09",
        h5player2: "03_js/201609/01/16/09",
        health: "04_js/201609/01/16/09",
        history: "06_js/201609/01/16/09",
        hot: "07_js/201609/08/16/43",
        hotlist: "05_js/201609/08/16/43",
        iResearch: "07_js/201609/01/16/09",
        index: "04_js/201609/01/16/09",
        integral: "06_js/201609/01/16/09",
        iwt: "06_js/201609/01/16/09",
        jifen: "07_js/201609/01/16/09",
        job: "06_js/201609/01/16/09",
        kid: "07_js/201609/01/16/09",
        leso: "06_js/201609/01/16/09",
        letv_baike: "05_js/201609/01/16/09",
        list: "04_js/201609/01/16/09",
        live: "04_js/201609/01/16/09",
        login: "02_js/201609/01/16/09",
        loginAbord: "06_js/201609/01/16/09",
        lottery: "06_js/201609/01/16/09",
        mess: "07_js/201609/01/16/09",
        mobile: "07_js/201609/01/16/09",
        movie: "04_js/201609/01/16/09",
        movie_hall: "02_js/201609/01/16/09",
        movie_like: "06_js/201609/01/16/09",
        movie_night: "05_js/201609/01/16/09",
        movie_theme: "07_js/201609/01/16/09",
        music: "07_js/201609/01/16/09",
        music_zt: "05_js/201609/01/16/09",
        newUserActivity: "07_js/201609/01/16/09",
        newplay: "05_js/201612/28/15/04",
        news: "05_js/201609/01/16/09",
        nights32: "05_js/201609/01/16/09",
        original: "07_js/201609/08/16/43",
        other: "04_js/201609/08/16/43",
        paike: "04_js/201609/01/16/09",
        pay: "04_js/201609/01/16/09",
        pay_main: "07_js/201609/01/16/09",
        pet: "04_js/201609/08/16/43",
        pgc: "06_js/201609/01/16/09",
        play: "04_js/201612/28/15/04",
        qr_code: "06_js/201609/01/16/09",
        recommend: "04_js/201609/01/16/09",
        school: "06_js/201609/01/16/09",
        serviceSelect: "04_js/201609/01/16/09",
        sideBar: "03_js/201609/01/16/09",
        singer: "07_js/201609/01/16/09",
        singlecmt: "07_js/201609/08/16/43",
        so: "05_js/201612/28/14/40",
        socceri: "04_js/201609/01/16/09",
        solution_iframe_player: "07_js/201609/01/16/09",
        special: "05_js/201611/30/16/28",
        sports: "04_js/201609/01/16/09",
        sports_epl: "06_js/201609/01/16/09",
        stat: "07_js/201610/14/15/57",
        stat_index: "07_js/201609/01/16/09",
        systemError: "04_js/201609/22/17/44",
        taiwan: "03_js/201609/01/16/09",
        tech: "06_js/201609/08/16/43",
        together: "04_js/201609/01/16/09",
        top: "06_js/201612/30/15/07",
        travel: "06_js/201609/01/16/09",
        tv: "06_js/201609/01/16/09",
        tv_drama_kor: "06_js/201609/08/16/43",
        tv_drama_us: "05_js/201609/01/16/09",
        tv_trailers: "04_js/201609/01/16/09",
        ugc: "06_js/201609/08/16/43",
        ugcUpload: "04_js/201609/01/16/09",
        ugc_play: "04_js/201609/08/16/43",
        upload: "05_js/201609/01/16/09",
        userPortrait: "04_js/201609/01/16/09",
        usercenter: "06_js/201609/01/16/09",
        usercenter_for_outsea: "03_js/201609/01/16/09",
        variety: "07_js/201609/01/16/09",
        video: "06_js/201609/01/16/09",
        vip: "06_js/201609/01/16/09",
        wcup: "04_js/201609/08/16/43",
        wfztpc: "04_js/201609/01/16/09",
        www_live: "07_js/201609/29/15/02",
        www_play: "04_js/201612/30/15/41",
        ycpay: "06_js/201609/01/16/09",
        zhifu_exchangecode: "07_js/201609/01/16/09",
        zhifu_letvbean: "05_js/201609/01/16/09",
        zhongqiu: "05_js/201609/01/16/09",
        zj_detail: "07_js/201610/29/01/33",
        zongyi_ltyy2: "04_js/201609/01/16/09",
        zongyi_zgmzs2: "06_js/201609/01/16/09",
        zt_comment: "06_js/201609/01/16/09",
        zt_common: "07_js/201609/01/16/09",
        zt_grammy: "04_js/201609/01/16/09",
        zt_pc_common: "06_js/201609/08/16/43",
        zt_wangfeng: "07_js/201609/01/16/09",
        zt_wangfeng_new: "03_js/201609/01/16/09",
        short_detail: "07_js/201611/30/15/44",
        search_index: "02_js/201612/14/14/57",
        __: "06_js/201612/30/15/41"
        /*<ver>*/
    };

    window.__loadjs = function (js) {
        document.write('<script type="text/javascript" src="http://js.letvcdn.com/lc' + (ver[js] || ver.__) + '/lejs/' + js + '.js"></script>');
    };
    __GLOBAL = {player_domain: 'http://player.letvcdn.com'};

//https请求
    if (document.location.protocol === 'https:') {
        window.__loadjs = function (js) {
            document.write('<script type="text/javascript" src="https://js-img.lecloud.com/lc' + (ver[js] || ver.__) + '/lejs/' + js + '.js"></script>');
        };
        __GLOBAL.player_domain = 'https://player-img.lecloud.com';
    }

    try {
        document.domain = hostChange('letv.com')
    } catch (e) {
    }

    function hostChange(host) {
        if (/le.com/.test(location.hostname)) {
            return host.replace(/letv.com/, 'le.com');
        }
        ;
        return host;
    };

    window.__INFO__ || (__INFO__ = {});
})(window);
